home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-03-04 | 9.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Mar 4 02:17:57 1993, modified Thu Mar 4 02:17:57 1993, creator Think C, type ASCII, 8463 bytes "PixMapToPostScript.c" , at 0x218f 1082 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 50 69 78 4d 61 70 | 54 6f 50 6f 73 74 53 63 |..PixMap|ToPostSc|
|00000010| 72 69 70 74 2e 63 00 00 | 00 00 00 00 00 00 00 00 |ript.c..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 21 0f 00 | 00 04 3a a7 bb 5d a5 a7 |.....!..|..:..]..|
|00000060| bb 5d a5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.]......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b2 af 00 00 |........|........|
|00000080| 2f 2a 0d 50 69 78 4d 61 | 70 54 6f 50 6f 73 74 53 |/*.PixMa|pToPostS|
|00000090| 63 72 69 70 74 2e 63 0d | 43 6f 70 79 72 69 67 68 |cript.c.|Copyrigh|
|000000a0| 74 20 a9 20 31 39 39 31 | 2c 31 39 39 32 20 44 65 |t . 1991|,1992 De|
|000000b0| 6e 69 73 20 47 2e 20 50 | 65 6c 6c 69 0d 09 54 68 |nis G. P|elli..Th|
|000000c0| 69 73 20 69 73 20 61 20 | 73 69 6d 70 6c 65 20 62 |is is a |simple b|
|000000d0| 75 74 20 72 65 61 73 6f | 6e 61 62 6c 79 20 67 65 |ut reaso|nably ge|
|000000e0| 6e 65 72 61 6c 20 72 6f | 75 74 69 6e 65 20 74 6f |neral ro|utine to|
|000000f0| 20 63 6f 6e 76 65 72 74 | 20 61 20 67 72 61 79 73 | convert| a grays|
|00000100| 63 61 6c 65 20 50 69 78 | 4d 61 70 20 74 6f 0d 61 |cale Pix|Map to.a|
|00000110| 20 50 6f 73 74 53 63 72 | 69 70 74 20 66 69 6c 65 | PostScr|ipt file|
|00000120| 20 74 68 61 74 20 6d 61 | 79 20 62 65 20 74 72 61 | that ma|y be tra|
|00000130| 6e 73 6d 69 74 74 65 64 | 20 74 6f 20 61 20 4c 61 |nsmitted| to a La|
|00000140| 73 65 72 57 72 69 74 65 | 72 20 6f 72 20 4c 69 6e |serWrite|r or Lin|
|00000150| 6f 74 79 70 65 20 74 6f | 20 70 72 6f 64 75 63 65 |otype to| produce|
|00000160| 0d 61 20 68 61 6c 66 74 | 6f 6e 65 20 69 6d 61 67 |.a halft|one imag|
|00000170| 65 20 6f 6e 20 70 61 70 | 65 72 2e 0d 09 54 68 65 |e on pap|er...The|
|00000180| 20 66 69 6c 65 6e 61 6d | 65 2c 20 62 79 20 63 6f | filenam|e, by co|
|00000190| 6e 76 65 6e 74 69 6f 6e | 2c 20 73 68 6f 75 6c 64 |nvention|, should|
|000001a0| 20 65 6e 64 20 69 6e 20 | 22 2e 70 73 22 20 74 6f | end in |".ps" to|
|000001b0| 20 69 6e 64 69 63 61 74 | 65 20 74 68 61 74 20 69 | indicat|e that i|
|000001c0| 74 20 69 73 20 61 20 70 | 6f 73 74 73 63 72 69 70 |t is a p|ostscrip|
|000001d0| 74 0d 66 69 6c 65 2c 20 | 62 75 74 20 74 68 69 73 |t.file, |but this|
|000001e0| 20 69 73 20 6e 6f 74 20 | 65 6e 66 6f 72 63 65 64 | is not |enforced|
|000001f0| 2e 20 54 68 65 20 66 69 | 6c 65 27 73 20 74 79 70 |. The fi|le's typ|
|00000200| 65 20 69 73 20 73 65 74 | 20 74 6f 20 27 54 45 58 |e is set| to 'TEX|
|00000210| 54 27 20 77 69 74 68 20 | 63 72 65 61 74 6f 72 0d |T' with |creator.|
|00000220| 27 34 50 53 55 27 2c 20 | 73 6f 20 74 68 61 74 20 |'4PSU', |so that |
|00000230| 69 74 20 63 61 6e 20 62 | 65 20 64 6f 75 62 6c 65 |it can b|e double|
|00000240| 2d 63 6c 69 63 6b 65 64 | 20 74 6f 20 6f 70 65 6e |-clicked| to open|
|00000250| 20 6d 79 20 66 61 76 6f | 72 69 74 65 20 50 6f 73 | my favo|rite Pos|
|00000260| 74 53 63 72 69 70 74 0d | 64 6f 77 6e 6c 6f 61 64 |tScript.|download|
|00000270| 69 6e 67 20 70 72 6f 67 | 72 61 6d 2c 20 50 6f 73 |ing prog|ram, Pos|
|00000280| 74 48 61 73 74 65 2e 20 | 48 6f 77 65 76 65 72 2c |tHaste. |However,|
|00000290| 20 73 69 6e 63 65 20 69 | 74 27 73 20 61 20 70 6c | since i|t's a pl|
|000002a0| 61 69 6e 20 74 65 78 74 | 20 66 69 6c 65 2c 20 61 |ain text| file, a|
|000002b0| 6e 79 20 64 6f 77 6e 6c | 6f 61 64 65 72 0d 77 69 |ny downl|oader.wi|
|000002c0| 6c 6c 20 77 6f 72 6b 2c | 20 61 6e 64 20 69 66 20 |ll work,| and if |
|000002d0| 79 6f 75 27 72 65 20 75 | 73 69 6e 67 20 61 20 4c |you're u|sing a L|
|000002e0| 69 6e 6f 74 79 70 65 2c | 20 79 6f 75 27 72 65 20 |inotype,| you're |
|000002f0| 70 72 6f 62 61 62 6c 79 | 20 6a 75 73 74 20 73 65 |probably| just se|
|00000300| 6e 64 69 6e 67 20 74 68 | 65 20 66 69 6c 65 0d 62 |nding th|e file.b|
|00000310| 79 20 6d 6f 64 65 6d 2e | 0d 09 54 68 65 20 50 69 |y modem.|..The Pi|
|00000320| 78 4d 61 70 20 6d 75 73 | 74 20 68 61 76 65 20 38 |xMap mus|t have 8|
|00000330| 20 62 69 74 73 20 70 65 | 72 20 70 69 78 65 6c 2e | bits pe|r pixel.|
|00000340| 20 4e 6f 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 73 | No colo|r tables|
|00000350| 20 61 72 65 20 75 73 65 | 64 2e 20 54 68 65 20 72 | are use|d. The r|
|00000360| 61 77 20 70 69 78 65 6c | 0d 76 61 6c 75 65 20 28 |aw pixel|.value (|
|00000370| 41 70 70 6c 65 20 63 61 | 6c 6c 73 20 69 74 20 61 |Apple ca|lls it a|
|00000380| 6e 20 22 69 6e 64 65 78 | 22 29 20 69 73 20 73 65 |n "index|") is se|
|00000390| 6e 74 20 64 69 72 65 63 | 74 6c 79 20 74 6f 20 74 |nt direc|tly to t|
|000003a0| 68 65 20 70 72 69 6e 74 | 65 72 20 77 69 74 68 20 |he print|er with |
|000003b0| 6e 6f 0d 74 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |no.trans|formatio|
|000003c0| 6e 2e 20 50 6f 73 74 53 | 63 72 69 70 74 20 61 73 |n. PostS|cript as|
|000003d0| 73 75 6d 65 73 20 74 68 | 61 74 20 74 68 65 20 6e |sumes th|at the n|
|000003e0| 75 6d 62 65 72 2c 20 66 | 72 6f 6d 20 30 20 74 6f |umber, f|rom 0 to|
|000003f0| 20 32 35 35 20 69 73 20 | 70 72 6f 70 6f 72 74 69 | 255 is |proporti|
|00000400| 6f 6e 61 6c 20 74 6f 0d | 64 65 73 69 72 65 64 20 |onal to.|desired |
|00000410| 72 65 66 6c 65 63 74 61 | 6e 63 65 2c 20 66 72 6f |reflecta|nce, fro|
|00000420| 6d 20 7a 65 72 6f 20 74 | 6f 20 31 2e 20 54 68 65 |m zero t|o 1. The|
|00000430| 20 2a 72 65 63 74 50 74 | 72 20 69 6e 64 69 63 61 | *rectPt|r indica|
|00000440| 74 65 73 20 77 68 61 74 | 20 70 61 72 74 20 6f 66 |tes what| part of|
|00000450| 20 79 6f 75 72 0d 50 69 | 78 4d 61 70 20 69 73 20 | your.Pi|xMap is |
|00000460| 74 6f 20 62 65 20 75 73 | 65 64 2e 20 0d 09 54 68 |to be us|ed. ..Th|
|00000470| 65 20 2a 70 61 67 65 52 | 65 63 74 50 74 72 20 69 |e *pageR|ectPtr i|
|00000480| 73 20 73 75 62 74 6c 65 | 2e 20 49 74 20 64 65 73 |s subtle|. It des|
|00000490| 63 72 69 62 65 73 2c 20 | 69 6e 20 74 79 70 6f 67 |cribes, |in typog|
|000004a0| 72 61 70 68 65 72 73 20 | 70 6f 69 6e 74 73 20 28 |raphers |points (|
|000004b0| 31 2f 37 32 22 29 2c 0d | 74 68 65 20 72 65 63 74 |1/72"),.|the rect|
|000004c0| 61 6e 67 6c 65 20 74 68 | 61 74 20 79 6f 75 72 20 |angle th|at your |
|000004d0| 69 6d 61 67 65 20 77 69 | 6c 6c 20 62 65 20 6d 61 |image wi|ll be ma|
|000004e0| 70 70 65 64 20 6f 6e 74 | 6f 20 6f 6e 20 74 68 65 |pped ont|o on the|
|000004f0| 20 70 72 69 6e 74 65 64 | 20 70 61 67 65 2e 20 49 | printed| page. I|
|00000500| 74 20 69 73 20 65 73 73 | 65 6e 74 69 61 6c 0d 74 |t is ess|ential.t|
|00000510| 68 61 74 20 79 6f 75 20 | 6b 65 65 70 20 69 6e 20 |hat you |keep in |
|00000520| 6d 69 6e 64 20 74 68 61 | 74 20 41 70 70 6c 65 20 |mind tha|t Apple |
|00000530| 61 6e 64 20 41 64 6f 62 | 65 20 75 73 65 20 64 69 |and Adob|e use di|
|00000540| 66 66 65 72 65 6e 74 20 | 63 6f 6f 72 64 69 6e 61 |fferent |coordina|
|00000550| 74 65 20 73 79 73 74 65 | 6d 73 2e 20 0d 42 6f 74 |te syste|ms. .Bot|
|00000560| 68 20 41 70 70 6c 65 20 | 61 6e 64 20 41 64 6f 62 |h Apple |and Adob|
|00000570| 65 20 69 6e 63 72 65 61 | 73 65 20 78 20 66 72 6f |e increa|se x fro|
|00000580| 6d 20 6c 65 66 74 20 74 | 6f 20 72 69 67 68 74 2e |m left t|o right.|
|00000590| 0d 48 6f 77 65 76 65 72 | 2c 20 41 70 70 6c 65 20 |.However|, Apple |
|000005a0| 68 61 73 20 79 20 69 6e | 63 72 65 61 73 69 6e 67 |has y in|creasing|
|000005b0| 20 66 72 6f 6d 20 74 6f | 70 20 74 6f 20 62 6f 74 | from to|p to bot|
|000005c0| 74 6f 6d 2c 20 77 68 65 | 72 65 61 73 20 41 64 6f |tom, whe|reas Ado|
|000005d0| 62 65 20 69 6e 63 72 65 | 61 73 65 73 20 79 20 66 |be incre|ases y f|
|000005e0| 72 6f 6d 0d 62 6f 74 74 | 6f 6d 20 74 6f 20 74 6f |rom.bott|om to to|
|000005f0| 70 2e 20 41 64 6f 62 65 | 27 73 20 6f 72 69 67 69 |p. Adobe|'s origi|
|00000600| 6e 20 69 73 20 74 68 65 | 20 6c 6f 77 65 72 20 6c |n is the| lower l|
|00000610| 65 66 74 20 63 6f 72 6e | 65 72 20 6f 66 20 74 68 |eft corn|er of th|
|00000620| 65 20 70 61 70 65 72 2c | 20 65 76 65 6e 20 74 68 |e paper,| even th|
|00000630| 6f 75 67 68 0d 74 68 61 | 74 20 70 6f 69 6e 74 20 |ough.tha|t point |
|00000640| 69 73 20 75 73 75 61 6c | 6c 79 20 6e 6f 74 20 70 |is usual|ly not p|
|00000650| 72 69 6e 74 61 62 6c 65 | 2c 20 73 69 6e 63 65 20 |rintable|, since |
|00000660| 6d 6f 73 74 20 70 72 69 | 6e 74 65 72 73 20 63 61 |most pri|nters ca|
|00000670| 6e 20 6f 6e 6c 79 20 70 | 72 69 6e 74 20 74 6f 20 |n only p|rint to |
|00000680| 77 69 74 68 69 6e 0d 61 | 62 6f 75 74 20 61 20 68 |within.a|bout a h|
|00000690| 61 6c 66 20 69 6e 63 68 | 20 6f 66 20 74 68 65 20 |alf inch| of the |
|000006a0| 65 64 67 65 2e 20 54 68 | 65 20 70 61 67 65 52 65 |edge. Th|e pageRe|
|000006b0| 63 74 2c 20 74 68 6f 75 | 67 68 20 73 75 70 70 6c |ct, thou|gh suppl|
|000006c0| 69 65 64 20 69 6e 20 41 | 70 70 6c 65 27 73 20 52 |ied in A|pple's R|
|000006d0| 65 63 74 20 64 61 74 61 | 0d 73 74 72 75 63 74 75 |ect data|.structu|
|000006e0| 72 65 2c 20 6d 75 73 74 | 20 62 65 20 69 6e 20 41 |re, must| be in A|
|000006f0| 64 6f 62 65 27 73 20 63 | 6f 6f 72 64 69 6e 61 74 |dobe's c|oordinat|
|00000700| 65 73 2c 20 72 65 73 70 | 65 63 74 69 6e 67 20 74 |es, resp|ecting t|
|00000710| 68 65 20 6e 61 6d 65 73 | 20 6f 66 20 74 68 65 20 |he names| of the |
|00000720| 52 65 63 74 20 73 74 72 | 75 63 74 75 72 65 27 73 |Rect str|ucture's|
|00000730| 0d 66 69 65 6c 64 73 3a | 20 6c 65 66 74 2c 20 74 |.fields:| left, t|
|00000740| 6f 70 2c 20 72 69 67 68 | 74 2c 20 62 6f 74 74 6f |op, righ|t, botto|
|00000750| 6d 2e 20 53 6f 2c 20 66 | 6f 72 20 61 6e 20 69 6d |m. So, f|or an im|
|00000760| 61 67 65 0d 74 6f 20 66 | 69 6c 6c 20 6d 6f 73 74 |age.to f|ill most|
|00000770| 20 6f 66 20 61 6e 20 38 | 2e 35 78 31 31 20 70 61 | of an 8|.5x11 pa|
|00000780| 67 65 2c 20 77 69 74 68 | 20 31 22 20 6d 61 72 67 |ge, with| 1" marg|
|00000790| 69 6e 73 2c 20 79 6f 75 | 20 6d 69 67 68 74 20 75 |ins, you| might u|
|000007a0| 73 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |se the f|ollowing|
|000007b0| 3a 0d 53 65 74 52 65 63 | 74 28 26 70 61 67 65 52 |:.SetRec|t(&pageR|
|000007c0| 65 63 74 2c 31 2a 37 32 | 2c 31 30 2a 37 32 2c 37 |ect,1*72|,10*72,7|
|000007d0| 2e 35 2a 37 32 2c 31 2a | 37 32 29 3b 0d 09 54 68 |.5*72,1*|72);..Th|
|000007e0| 65 20 63 65 6c 6c 73 50 | 65 72 49 6e 63 68 20 70 |e cellsP|erInch p|
|000007f0| 61 72 61 6d 65 74 65 72 | 20 69 73 20 6f 70 74 69 |arameter| is opti|
|00000800| 6f 6e 61 6c 20 69 6e 20 | 74 68 65 20 73 65 6e 73 |onal in |the sens|
|00000810| 65 20 74 68 61 74 20 69 | 66 20 63 65 6c 6c 73 50 |e that i|f cellsP|
|00000820| 65 72 49 6e 63 68 20 69 | 73 20 7a 65 72 6f 0d 69 |erInch i|s zero.i|
|00000830| 74 20 69 73 20 69 67 6e | 6f 72 65 64 2c 20 6c 65 |t is ign|ored, le|
|00000840| 61 76 69 6e 67 20 74 68 | 65 20 70 72 69 6e 74 65 |aving th|e printe|
|00000850| 72 20 61 74 20 69 74 73 | 20 64 65 66 61 75 6c 74 |r at its| default|
|00000860| 20 73 65 74 74 69 6e 67 | 2c 20 77 68 69 63 68 20 | setting|, which |
|00000870| 69 73 20 75 73 75 61 6c | 6c 79 20 61 0d 67 6f 6f |is usual|ly a.goo|
|00000880| 64 20 63 68 6f 69 63 65 | 2e 20 49 66 20 79 6f 75 |d choice|. If you|
|00000890| 20 73 65 74 20 63 65 6c | 6c 73 50 65 72 49 6e 63 | set cel|lsPerInc|
|000008a0| 68 20 74 6f 20 61 0d 6e | 6f 6e 7a 65 72 6f 20 76 |h to a.n|onzero v|
|000008b0| 61 6c 75 65 20 74 68 65 | 6e 20 74 68 65 20 70 72 |alue the|n the pr|
|000008c0| 69 6e 74 65 72 20 77 69 | 6c 6c 20 62 65 20 61 73 |inter wi|ll be as|
|000008d0| 6b 65 64 20 74 6f 20 70 | 72 69 6e 74 20 69 74 73 |ked to p|rint its|
|000008e0| 20 68 61 6c 66 74 6f 6e | 65 20 77 69 74 68 20 74 | halfton|e with t|
|000008f0| 68 61 74 0d 6d 61 6e 79 | 20 68 61 6c 66 74 6f 6e |hat.many| halfton|
|00000900| 65 20 63 65 6c 6c 73 20 | 70 65 72 20 69 6e 63 68 |e cells |per inch|
|00000910| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 72 |. Note t|hat ther|
|00000920| 65 20 69 73 20 6e 6f 20 | 63 6f 72 72 65 73 70 6f |e is no |correspo|
|00000930| 6e 64 65 6e 63 65 20 62 | 65 74 77 65 65 6e 20 70 |ndence b|etween p|
|00000940| 69 78 65 6c 73 20 69 6e | 20 79 6f 75 72 0d 69 6d |ixels in| your.im|
|00000950| 61 67 65 20 61 6e 64 20 | 63 65 6c 6c 73 20 69 6e |age and |cells in|
|00000960| 20 74 68 65 20 68 61 6c | 66 74 6f 6e 65 3b 20 50 | the hal|ftone; P|
|00000970| 6f 73 74 53 63 72 69 70 | 74 20 61 75 74 6f 6d 61 |ostScrip|t automa|
|00000980| 74 69 63 61 6c 6c 79 20 | 72 65 73 61 6d 70 6c 65 |tically |resample|
|00000990| 73 20 79 6f 75 72 20 69 | 6d 61 67 65 20 74 6f 0d |s your i|mage to.|
|000009a0| 70 72 6f 64 75 63 65 20 | 69 74 73 20 68 61 6c 66 |produce |its half|
|000009b0| 74 6f 6e 65 2e 20 54 68 | 65 72 65 20 61 72 65 20 |tone. Th|ere are |
|000009c0| 74 77 6f 20 63 6f 6d 6d | 6f 6e 20 72 65 61 73 6f |two comm|on reaso|
|000009d0| 6e 73 20 66 6f 72 20 66 | 69 64 64 6c 69 6e 67 20 |ns for f|iddling |
|000009e0| 77 69 74 68 20 63 65 6c | 6c 73 50 65 72 49 6e 63 |with cel|lsPerInc|
|000009f0| 68 2e 0d 49 66 20 79 6f | 75 27 72 65 20 74 72 79 |h..If yo|u're try|
|00000a00| 69 6e 67 20 74 6f 20 67 | 65 74 20 61 20 72 65 61 |ing to g|et a rea|
|00000a10| 73 6f 6e 61 62 6c 65 20 | 67 72 61 79 20 73 63 61 |sonable |gray sca|
|00000a20| 6c 65 20 6f 75 74 20 6f | 66 20 61 20 4c 61 73 65 |le out o|f a Lase|
|00000a30| 72 57 72 69 74 65 72 20 | 28 77 68 69 63 68 0d 68 |rWriter |(which.h|
|00000a40| 61 73 20 33 30 30 20 64 | 6f 74 73 20 70 65 72 20 |as 300 d|ots per |
|00000a50| 69 6e 63 68 29 20 79 6f | 75 27 6c 6c 20 6e 65 65 |inch) yo|u'll nee|
|00000a60| 64 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 63 65 |d to mak|e the ce|
|00000a70| 6c 6c 20 73 69 7a 65 20 | 62 69 67 20 65 6e 6f 75 |ll size |big enou|
|00000a80| 67 68 20 74 6f 20 68 6f | 6c 64 20 61 74 20 6c 65 |gh to ho|ld at le|
|00000a90| 61 73 74 0d 32 35 36 20 | 70 69 78 65 6c 73 20 69 |ast.256 |pixels i|
|00000aa0| 66 20 79 6f 75 20 77 61 | 6e 74 20 32 35 36 20 67 |f you wa|nt 256 g|
|00000ab0| 72 61 79 20 6c 65 76 65 | 6c 73 2e 20 54 68 69 73 |ray leve|ls. This|
|00000ac0| 20 72 65 71 75 69 72 65 | 73 20 33 30 30 2f 73 71 | require|s 300/sq|
|00000ad0| 72 74 28 32 35 36 29 3d | 31 38 2e 37 35 20 63 65 |rt(256)=|18.75 ce|
|00000ae0| 6c 6c 73 20 70 65 72 0d | 69 6e 63 68 2e 20 54 68 |lls per.|inch. Th|
|00000af0| 65 20 6f 74 68 65 72 20 | 73 69 74 75 61 74 69 6f |e other |situatio|
|00000b00| 6e 20 69 73 20 70 72 6f | 64 75 63 69 6e 67 20 61 |n is pro|ducing a|
|00000b10| 20 68 61 6c 66 20 74 6f | 6e 65 20 61 73 20 61 6e | half to|ne as an|
|00000b20| 20 6f 72 69 67 69 6e 61 | 6c 20 66 6f 72 20 73 75 | origina|l for su|
|00000b30| 62 73 65 71 75 65 6e 74 | 0d 72 65 70 72 6f 64 75 |bsequent|.reprodu|
|00000b40| 63 74 69 6f 6e 20 69 6e | 20 61 20 6a 6f 75 72 6e |ction in| a journ|
|00000b50| 61 6c 2c 20 77 68 65 72 | 65 20 79 6f 75 27 6c 6c |al, wher|e you'll|
|00000b60| 20 77 61 6e 74 20 74 68 | 65 20 63 65 6c 6c 73 20 | want th|e cells |
|00000b70| 74 6f 20 62 65 20 63 6f | 61 72 73 65 20 65 6e 6f |to be co|arse eno|
|00000b80| 75 67 68 20 66 6f 72 0d | 74 68 65 6d 20 74 6f 20 |ugh for.|them to |
|00000b90| 72 65 70 72 6f 64 75 63 | 65 20 77 69 74 68 6f 75 |reproduc|e withou|
|00000ba0| 74 20 72 65 2d 73 63 72 | 65 65 6e 69 6e 67 2c 20 |t re-scr|eening, |
|00000bb0| 65 2e 67 2e 20 31 30 30 | 20 63 65 6c 6c 73 20 70 |e.g. 100| cells p|
|00000bc0| 65 72 20 69 6e 63 68 2e | 0d 09 59 6f 75 20 73 68 |er inch.|..You sh|
|00000bd0| 6f 75 6c 64 20 72 65 6d | 6f 76 65 28 66 69 6c 65 |ould rem|ove(file|
|00000be0| 6e 61 6d 65 29 20 61 6e | 79 20 70 72 65 2d 65 78 |name) an|y pre-ex|
|00000bf0| 69 73 74 69 6e 67 20 6f | 6c 64 20 66 69 6c 65 20 |isting o|ld file |
|00000c00| 6f 66 20 74 68 65 20 73 | 61 6d 65 20 6e 61 6d 65 |of the s|ame name|
|00000c10| 2c 20 75 6e 6c 65 73 73 | 20 0d 79 6f 75 20 77 61 |, unless| .you wa|
|00000c20| 6e 74 20 74 6f 20 61 70 | 70 65 6e 64 20 74 6f 20 |nt to ap|pend to |
|00000c30| 69 74 2e 20 50 69 78 4d | 61 70 54 6f 50 6f 73 74 |it. PixM|apToPost|
|00000c40| 53 63 72 69 70 74 20 61 | 6c 77 61 79 73 20 61 70 |Script a|lways ap|
|00000c50| 70 65 6e 64 73 20 74 6f | 20 61 6e 20 65 78 69 73 |pends to| an exis|
|00000c60| 74 69 6e 67 20 66 69 6c | 65 20 77 69 74 68 0d 74 |ting fil|e with.t|
|00000c70| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 2c 20 69 66 |he same |name, if|
|00000c80| 20 6f 6e 65 20 65 78 69 | 73 74 73 2c 20 74 6f 20 | one exi|sts, to |
|00000c90| 61 6c 6c 6f 77 20 79 6f | 75 20 74 6f 20 70 6c 61 |allow yo|u to pla|
|00000ca0| 63 65 20 73 65 76 65 72 | 61 6c 20 69 6d 61 67 65 |ce sever|al image|
|00000cb0| 73 20 6f 6e 74 6f 20 61 | 20 70 61 67 65 2e 20 0d |s onto a| page. .|
|00000cc0| 28 59 6f 75 20 73 68 6f | 75 6c 64 20 6f 66 66 73 |(You sho|uld offs|
|00000cd0| 65 74 20 74 68 65 69 72 | 20 70 61 67 65 52 65 63 |et their| pageRec|
|00000ce0| 74 73 20 75 6e 6c 65 73 | 73 20 79 6f 75 20 77 61 |ts unles|s you wa|
|00000cf0| 6e 74 20 74 68 65 20 69 | 6d 61 67 65 73 20 74 6f |nt the i|mages to|
|00000d00| 20 73 75 70 65 72 69 6d | 70 6f 73 65 2e 29 20 0d | superim|pose.) .|
|00000d10| 09 59 6f 75 20 77 69 6c | 6c 20 6e 65 65 64 20 74 |.You wil|l need t|
|00000d20| 6f 20 61 64 64 20 61 20 | 22 73 68 6f 77 70 61 67 |o add a |"showpag|
|00000d30| 65 5c 6e 22 20 63 6f 6d | 6d 61 6e 64 20 61 74 20 |e\n" com|mand at |
|00000d40| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 70 |the end |of the p|
|00000d50| 6f 73 74 73 63 72 69 70 | 74 20 66 69 6c 65 2e 20 |ostscrip|t file. |
|00000d60| 0d 54 68 69 73 20 69 73 | 20 74 68 65 20 63 6f 6d |.This is| the com|
|00000d70| 6d 61 6e 64 20 74 68 61 | 74 20 74 65 6c 6c 73 20 |mand tha|t tells |
|00000d80| 74 68 65 20 70 72 69 6e | 74 65 72 20 74 6f 20 61 |the prin|ter to a|
|00000d90| 63 74 75 61 6c 6c 79 20 | 67 6f 20 61 68 65 61 64 |ctually |go ahead|
|00000da0| 20 61 6e 64 20 70 72 69 | 6e 74 20 74 68 65 20 70 | and pri|nt the p|
|00000db0| 61 67 65 2e 20 0d 55 73 | 65 20 74 68 65 20 63 6f |age. .Us|e the co|
|00000dc0| 6d 6d 61 6e 64 20 41 70 | 70 65 6e 64 54 6f 46 69 |mmand Ap|pendToFi|
|00000dd0| 6c 65 28 66 69 6c 65 6e | 61 6d 65 2c 22 73 68 6f |le(filen|ame,"sho|
|00000de0| 77 70 61 67 65 5c 6e 22 | 29 2c 20 73 75 70 70 6c |wpage\n"|), suppl|
|00000df0| 69 65 64 20 66 6f 72 20 | 74 68 69 73 20 70 75 72 |ied for |this pur|
|00000e00| 70 6f 73 65 2e 20 4e 61 | 74 75 72 61 6c 6c 79 2c |pose. Na|turally,|
|00000e10| 20 0d 79 6f 75 20 63 6f | 75 6c 64 20 61 6c 73 6f | .you co|uld also|
|00000e20| 20 75 73 65 20 74 6f 20 | 74 68 69 73 20 74 6f 20 | use to |this to |
|00000e30| 61 64 64 20 79 6f 75 72 | 20 6f 77 6e 20 70 6f 73 |add your| own pos|
|00000e40| 74 73 63 72 69 70 74 20 | 63 6f 6d 6d 61 6e 64 73 |tscript |commands|
|00000e50| 20 62 65 66 6f 72 65 20 | 6f 72 20 61 66 74 65 72 | before |or after|
|00000e60| 20 74 68 65 0d 69 6d 61 | 67 69 6e 67 20 63 6f 64 | the.ima|ging cod|
|00000e70| 65 20 69 6e 73 65 72 74 | 65 64 20 62 79 20 50 69 |e insert|ed by Pi|
|00000e80| 78 4d 61 70 54 6f 50 6f | 73 74 53 63 72 69 70 74 |xMapToPo|stScript|
|00000e90| 2e 20 0d 09 48 65 72 65 | 27 73 20 61 20 6d 69 6e |. ..Here|'s a min|
|00000ea0| 69 6d 61 6c 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |imal exa|mple of |
|00000eb0| 74 68 65 20 74 68 72 65 | 65 20 63 6f 6d 6d 61 6e |the thre|e comman|
|00000ec0| 64 73 3a 0d 72 65 6d 6f | 76 65 28 22 74 65 73 74 |ds:.remo|ve("test|
|00000ed0| 2e 70 73 22 29 3b 0d 50 | 69 78 4d 61 70 54 6f 50 |.ps");.P|ixMapToP|
|00000ee0| 6f 73 74 53 63 72 69 70 | 74 28 22 74 65 73 74 2e |ostScrip|t("test.|
|00000ef0| 70 73 22 2c 2a 70 69 78 | 4d 61 70 48 61 6e 64 6c |ps",*pix|MapHandl|
|00000f00| 65 2c 26 72 65 63 74 2c | 26 70 61 67 65 52 65 63 |e,&rect,|&pageRec|
|00000f10| 74 2c 30 2e 30 2c 30 29 | 3b 0d 41 70 70 65 6e 64 |t,0.0,0)|;.Append|
|00000f20| 54 6f 46 69 6c 65 28 22 | 74 65 73 74 2e 70 73 22 |ToFile("|test.ps"|
|00000f30| 2c 22 73 68 6f 77 70 61 | 67 65 5c 6e 22 29 3b 0d |,"showpa|ge\n");.|
|00000f40| 09 49 6e 20 63 61 73 65 | 20 79 6f 75 72 20 50 6f |.In case| your Po|
|00000f50| 73 74 53 63 72 69 70 74 | 20 6d 61 6e 75 61 6c 20 |stScript| manual |
|00000f60| 69 73 6e 27 74 20 68 61 | 6e 64 79 2c 20 74 68 65 |isn't ha|ndy, the|
|00000f70| 20 65 61 73 79 20 77 61 | 79 20 74 6f 20 6f 62 74 | easy wa|y to obt|
|00000f80| 61 69 6e 20 6d 75 6c 74 | 69 70 6c 65 20 63 6f 70 |ain mult|iple cop|
|00000f90| 69 65 73 0d 6f 66 20 74 | 68 65 20 73 61 6d 65 20 |ies.of t|he same |
|00000fa0| 70 61 67 65 20 69 73 20 | 74 6f 20 75 73 65 20 74 |page is |to use t|
|00000fb0| 68 65 20 23 63 6f 70 69 | 65 73 20 76 61 72 69 61 |he #copi|es varia|
|00000fc0| 62 6c 65 20 74 68 61 74 | 27 73 20 62 75 69 6c 74 |ble that|'s built|
|00000fd0| 20 69 6e 74 6f 20 50 6f | 73 74 73 63 72 69 70 74 | into Po|stscript|
|00000fe0| 2e 20 41 6e 79 77 68 65 | 72 65 0d 69 6e 20 79 6f |. Anywhe|re.in yo|
|00000ff0| 75 72 20 66 69 6c 65 20 | 62 65 66 6f 72 65 20 22 |ur file |before "|
|00001000| 73 68 6f 77 70 61 67 65 | 22 2c 20 73 65 74 20 23 |showpage|", set #|
|00001010| 63 6f 70 69 65 73 20 74 | 6f 20 74 68 65 20 64 65 |copies t|o the de|
|00001020| 73 69 72 65 64 20 76 61 | 6c 75 65 2e 20 45 2e 67 |sired va|lue. E.g|
|00001030| 2e 0d 41 70 70 65 6e 64 | 54 6f 46 69 6c 65 28 22 |..Append|ToFile("|
|00001040| 74 65 73 74 2e 70 73 22 | 2c 22 2f 23 63 6f 70 69 |test.ps"|,"/#copi|
|00001050| 65 73 20 33 20 64 65 66 | 5c 6e 22 29 3b 0d 09 54 |es 3 def|\n");..T|
|00001060| 68 65 72 65 20 61 72 65 | 20 6d 61 6e 79 20 66 72 |here are| many fr|
|00001070| 65 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 64 6f |ee PostS|cript do|
|00001080| 77 6e 6c 6f 61 64 65 72 | 73 2c 20 62 75 74 20 49 |wnloader|s, but I|
|00001090| 20 66 69 6e 64 20 74 68 | 65 6d 20 63 6c 75 6d 73 | find th|em clums|
|000010a0| 79 20 74 6f 20 75 73 65 | 2c 20 65 73 70 65 63 69 |y to use|, especi|
|000010b0| 61 6c 6c 79 0d 74 68 65 | 20 6f 6e 65 73 20 74 68 |ally.the| ones th|
|000010c0| 61 74 20 64 6f 6e 27 74 | 20 69 6e 66 6f 72 6d 20 |at don't| inform |
|000010d0| 79 6f 75 20 6f 66 20 65 | 72 72 6f 72 73 2c 20 73 |you of e|rrors, s|
|000010e0| 68 6f 75 6c 64 20 74 68 | 65 79 20 6f 63 63 75 72 |hould th|ey occur|
|000010f0| 2e 20 49 20 62 6f 75 67 | 68 74 20 61 6e 64 20 75 |. I boug|ht and u|
|00001100| 73 65 0d 50 6f 73 74 48 | 61 73 74 65 0d 66 72 6f |se.PostH|aste.fro|
|00001110| 6d 3a 0d 4d 69 63 72 6f | 20 44 79 6e 61 6d 69 63 |m:.Micro| Dynamic|
|00001120| 73 2c 20 4c 74 64 2e 0d | 38 35 35 35 20 31 36 74 |s, Ltd..|8555 16t|
|00001130| 68 20 53 74 2e 2c 20 53 | 75 69 74 65 20 38 30 32 |h St., S|uite 802|
|00001140| 0d 53 69 6c 76 65 72 20 | 53 70 72 69 6e 67 2c 20 |.Silver |Spring, |
|00001150| 4d 44 20 32 30 39 31 30 | 0d 28 33 30 31 29 2d 35 |MD 20910|.(301)-5|
|00001160| 38 39 2d 36 33 30 30 0d | 6f 72 0d 4c 61 73 65 72 |89-6300.|or.Laser|
|00001170| 53 74 61 74 75 73 2c 20 | 61 20 64 65 73 6b 20 61 |Status, |a desk a|
|00001180| 63 63 65 73 73 6f 72 79 | 20 74 68 61 74 20 69 73 |ccessory| that is|
|00001190| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 | include|d in the|
|000011a0| 20 0d 4d 6f 63 6b 50 61 | 63 6b 61 67 65 20 50 6c | .MockPa|ckage Pl|
|000011b0| 75 73 20 55 74 69 6c 69 | 74 69 65 73 0d 66 72 6f |us Utili|ties.fro|
|000011c0| 6d 3a 0d 43 45 20 53 6f | 66 74 77 61 72 65 0d 31 |m:.CE So|ftware.1|
|000011d0| 38 35 34 20 46 75 6c 6c | 65 72 20 52 6f 61 64 0d |854 Full|er Road.|
|000011e0| 50 4f 20 42 6f 78 20 36 | 35 35 38 30 0d 57 65 73 |PO Box 6|5580.Wes|
|000011f0| 74 20 44 65 73 20 4d 6f | 69 6e 65 73 2c 20 49 6f |t Des Mo|ines, Io|
|00001200| 77 61 20 35 30 32 36 35 | 0d 28 35 31 35 29 2d 32 |wa 50265|.(515)-2|
|00001210| 32 34 2d 31 39 39 35 0d | 09 59 6f 75 20 6d 61 79 |24-1995.|.You may|
|00001220| 20 61 6c 73 6f 20 77 61 | 6e 74 20 74 6f 20 72 65 | also wa|nt to re|
|00001230| 61 64 3a 0d 41 64 6f 62 | 65 20 53 79 73 74 65 6d |ad:.Adob|e System|
|00001240| 73 20 28 31 39 38 35 29 | 20 50 6f 73 74 53 63 72 |s (1985)| PostScr|
|00001250| 69 70 74 20 4c 61 6e 67 | 75 61 67 65 20 52 65 66 |ipt Lang|uage Ref|
|00001260| 65 72 65 6e 63 65 20 4d | 61 6e 75 61 6c 2e 20 52 |erence M|anual. R|
|00001270| 65 61 64 69 6e 67 2c 20 | 4d 41 3a 20 41 64 64 69 |eading, |MA: Addi|
|00001280| 73 6f 6e 2d 57 65 73 6c | 65 79 2e 0d 50 65 6c 6c |son-Wesl|ey..Pell|
|00001290| 69 2c 20 44 2e 20 47 2e | 20 28 31 39 38 37 29 20 |i, D. G.| (1987) |
|000012a0| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 69 6e 20 50 |Programm|ing in P|
|000012b0| 6f 73 74 53 63 72 69 70 | 74 3a 20 49 6d 61 67 69 |ostScrip|t: Imagi|
|000012c0| 6e 67 20 6f 6e 20 70 61 | 70 65 72 20 66 72 6f 6d |ng on pa|per from|
|000012d0| 20 61 20 6d 61 74 68 65 | 6d 61 74 69 63 61 6c 0d | a mathe|matical.|
|000012e0| 64 65 73 63 72 69 70 74 | 69 6f 6e 2e 20 42 59 54 |descript|ion. BYT|
|000012f0| 45 2c 20 31 32 20 28 35 | 29 2c 20 31 38 35 2d 32 |E, 12 (5|), 185-2|
|00001300| 30 32 2e 0d 0d 48 49 53 | 54 4f 52 59 3a 0d 34 2f |02...HIS|TORY:.4/|
|00001310| 32 31 2f 39 31 09 64 67 | 70 09 77 72 6f 74 65 20 |21/91.dg|p.wrote |
|00001320| 69 74 0d 37 2f 32 34 2f | 39 31 20 64 67 70 20 61 |it.7/24/|91 dgp a|
|00001330| 64 64 65 64 20 63 6f 6d | 6d 65 6e 74 20 61 62 6f |dded com|ment abo|
|00001340| 75 74 20 73 68 69 66 74 | 69 6e 67 20 70 61 67 65 |ut shift|ing page|
|00001350| 52 65 63 74 0d 38 2f 32 | 34 2f 39 31 09 64 67 70 |Rect.8/2|4/91.dgp|
|00001360| 09 4d 61 64 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |.Made co|mpatible|
|00001370| 20 77 69 74 68 20 54 48 | 49 4e 4b 20 43 20 35 2e | with TH|INK C 5.|
|00001380| 30 0d 31 32 2f 37 2f 39 | 31 09 64 67 70 09 6d 69 |0.12/7/9|1.dgp.mi|
|00001390| 6e 6f 72 20 65 64 69 74 | 69 6e 67 20 6f 66 20 63 |nor edit|ing of c|
|000013a0| 6f 6d 6d 65 6e 74 73 0d | 31 30 2f 31 30 2f 39 32 |omments.|10/10/92|
|000013b0| 20 64 67 70 20 41 64 64 | 65 64 20 73 75 70 70 6f | dgp Add|ed suppo|
|000013c0| 72 74 20 66 6f 72 20 50 | 69 78 6d 61 70 27 73 20 |rt for P|ixmap's |
|000013d0| 74 68 61 74 20 72 65 71 | 75 69 72 65 20 33 32 2d |that req|uire 32-|
|000013e0| 62 69 74 20 61 64 64 72 | 65 73 73 69 6e 67 2e 0d |bit addr|essing..|
|000013f0| 09 09 09 4d 75 63 68 20 | 66 61 73 74 65 72 20 6e |...Much |faster n|
|00001400| 6f 77 2c 20 75 73 69 6e | 67 20 74 61 62 6c 65 2d |ow, usin|g table-|
|00001410| 6c 6f 6f 6b 75 70 20 69 | 6e 73 74 65 61 64 20 6f |lookup i|nstead o|
|00001420| 66 20 73 70 72 69 6e 74 | 66 20 66 6f 72 20 0d 09 |f sprint|f for ..|
|00001430| 09 09 74 68 65 20 68 65 | 78 20 65 6e 63 6f 64 69 |..the he|x encodi|
|00001440| 6e 67 2e 0d 09 09 09 44 | 65 6c 65 74 65 64 20 6f |ng.....D|eleted o|
|00001450| 62 73 6f 6c 65 74 65 20 | 73 75 70 70 6f 72 74 20 |bsolete |support |
|00001460| 66 6f 72 20 54 48 49 4e | 4b 20 43 20 34 2e 0d 2a |for THIN|K C 4..*|
|00001470| 2f 0d 23 69 6e 63 6c 75 | 64 65 20 22 56 69 64 65 |/.#inclu|de "Vide|
|00001480| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 22 0d 23 69 6e 63 |oToolbox|.h".#inc|
|00001490| 6c 75 64 65 20 3c 61 73 | 73 65 72 74 2e 68 3e 0d |lude <as|sert.h>.|
|000014a0| 23 69 6e 63 6c 75 64 65 | 20 3c 6d 61 74 68 2e 68 |#include| <math.h|
|000014b0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 72 72 6f |>.#inclu|de <Erro|
|000014c0| 72 73 2e 68 3e 0d 0d 76 | 6f 69 64 20 50 69 78 4d |rs.h>..v|oid PixM|
|000014d0| 61 70 54 6f 50 6f 73 74 | 53 63 72 69 70 74 28 63 |apToPost|Script(c|
|000014e0| 68 61 72 20 2a 66 69 6c | 65 6e 61 6d 65 2c 50 69 |har *fil|ename,Pi|
|000014f0| 78 4d 61 70 20 2a 70 6d | 2c 52 65 63 74 20 2a 72 |xMap *pm|,Rect *r|
|00001500| 65 63 74 50 74 72 0d 09 | 2c 52 65 63 74 20 2a 70 |ectPtr..|,Rect *p|
|00001510| 61 67 65 52 65 63 74 50 | 74 72 2c 64 6f 75 62 6c |ageRectP|tr,doubl|
|00001520| 65 20 63 65 6c 6c 73 50 | 65 72 49 6e 63 68 2c 69 |e cellsP|erInch,i|
|00001530| 6e 74 20 67 72 61 79 4c | 65 76 65 6c 73 29 0d 7b |nt grayL|evels).{|
|00001540| 0d 09 46 49 4c 45 20 2a | 66 69 6c 65 3b 0d 09 75 |..FILE *|file;..u|
|00001550| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 2a 61 64 |nsigned |char *ad|
|00001560| 64 72 3b 0d 09 6c 6f 6e | 67 20 79 2c 62 79 74 65 |dr;..lon|g y,byte|
|00001570| 73 2c 77 69 64 74 68 3b | 0d 09 72 65 67 69 73 74 |s,width;|..regist|
|00001580| 65 72 20 6c 6f 6e 67 20 | 69 3b 0d 09 72 65 67 69 |er long |i;..regi|
|00001590| 73 74 65 72 20 75 6e 73 | 69 67 6e 65 64 20 73 68 |ster uns|igned sh|
|000015a0| 6f 72 74 20 2a 62 75 66 | 66 65 72 2c 68 65 78 5b |ort *buf|fer,hex[|
|000015b0| 32 35 36 5d 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |256];..r|egister |
|000015c0| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 20 2a 62 |unsigned| char *b|
|000015d0| 79 74 65 3b 0d 09 73 68 | 6f 72 74 20 70 69 78 65 |yte;..sh|ort pixe|
|000015e0| 6c 53 69 7a 65 3b 0d 09 | 73 68 6f 72 74 20 72 6f |lSize;..|short ro|
|000015f0| 77 42 79 74 65 73 3b 0d | 09 74 69 6d 65 5f 74 20 |wBytes;.|.time_t |
|00001600| 41 4e 53 49 54 69 6d 65 | 3b 0d 09 63 68 61 72 20 |ANSITime|;..char |
|00001610| 73 74 72 69 6e 67 5b 31 | 30 30 5d 3b 0d 09 63 68 |string[1|00];..ch|
|00001620| 61 72 20 6d 6f 64 65 3b | 0d 09 09 0d 09 69 66 28 |ar mode;|.....if(|
|00001630| 63 65 6c 6c 73 50 65 72 | 49 6e 63 68 21 3d 30 2e |cellsPer|Inch!=0.|
|00001640| 30 20 26 26 20 67 72 61 | 79 4c 65 76 65 6c 73 21 |0 && gra|yLevels!|
|00001650| 3d 30 2e 30 29 7b 0d 09 | 09 50 72 69 6e 74 66 45 |=0.0){..|.PrintfE|
|00001660| 78 69 74 28 22 50 69 78 | 4d 61 70 54 6f 50 6f 73 |xit("Pix|MapToPos|
|00001670| 74 53 63 72 69 70 74 3a | 20 79 6f 75 20 6d 61 79 |tScript:| you may|
|00001680| 20 6e 6f 74 20 73 70 65 | 63 69 66 79 20 42 4f 54 | not spe|cify BOT|
|00001690| 48 20 63 65 6c 6c 73 50 | 65 72 49 6e 63 68 20 26 |H cellsP|erInch &|
|000016a0| 20 67 72 61 79 4c 65 76 | 65 6c 73 5c 6e 5c 30 30 | grayLev|els\n\00|
|000016b0| 37 22 0d 09 09 09 22 53 | 65 74 20 6f 6e 65 20 74 |7"...."S|et one t|
|000016c0| 6f 20 7a 65 72 6f 2e 5c | 6e 22 29 3b 0d 09 7d 0d |o zero.\|n");..}.|
|000016d0| 09 66 69 6c 65 3d 66 6f | 70 65 6e 28 66 69 6c 65 |.file=fo|pen(file|
|000016e0| 6e 61 6d 65 2c 22 61 22 | 29 3b 0d 09 69 66 28 66 |name,"a"|);..if(f|
|000016f0| 69 6c 65 3d 3d 4e 55 4c | 4c 29 50 72 69 6e 74 66 |ile==NUL|L)Printf|
|00001700| 45 78 69 74 28 22 50 69 | 78 4d 61 70 54 6f 50 6f |Exit("Pi|xMapToPo|
|00001710| 73 74 53 63 72 69 70 74 | 3a 20 45 72 72 6f 72 20 |stScript|: Error |
|00001720| 69 6e 20 6f 70 65 6e 69 | 6e 67 20 66 69 6c 65 20 |in openi|ng file |
|00001730| 5c 22 25 73 5c 22 5c 6e | 22 2c 66 69 6c 65 6e 61 |\"%s\"\n|",filena|
|00001740| 6d 65 29 3b 0d 09 61 64 | 64 72 3d 52 65 63 74 54 |me);..ad|dr=RectT|
|00001750| 6f 41 64 64 72 65 73 73 | 28 70 6d 2c 72 65 63 74 |oAddress|(pm,rect|
|00001760| 50 74 72 2c 26 72 6f 77 | 42 79 74 65 73 2c 26 70 |Ptr,&row|Bytes,&p|
|00001770| 69 78 65 6c 53 69 7a 65 | 2c 4e 55 4c 4c 29 3b 0d |ixelSize|,NULL);.|
|00001780| 09 69 66 28 61 64 64 72 | 3d 3d 4e 55 4c 4c 20 7c |.if(addr|==NULL ||
|00001790| 7c 20 70 69 78 65 6c 53 | 69 7a 65 21 3d 38 29 0d || pixelS|ize!=8).|
|000017a0| 09 09 50 72 69 6e 74 66 | 45 78 69 74 28 22 50 69 |..Printf|Exit("Pi|
|000017b0| 78 4d 61 70 54 6f 50 6f | 73 74 53 63 72 69 70 74 |xMapToPo|stScript|
|000017c0| 3a 20 43 61 6e 27 74 20 | 64 65 61 6c 20 77 69 74 |: Can't |deal wit|
|000017d0| 68 20 74 68 69 73 20 50 | 69 78 4d 61 70 2e 5c 6e |h this P|ixMap.\n|
|000017e0| 22 29 3b 0d 09 74 69 6d | 65 28 26 41 4e 53 49 54 |");..tim|e(&ANSIT|
|000017f0| 69 6d 65 29 3b 0d 09 73 | 74 72 66 74 69 6d 65 28 |ime);..s|trftime(|
|00001800| 73 74 72 69 6e 67 2c 73 | 69 7a 65 6f 66 28 73 74 |string,s|izeof(st|
|00001810| 72 69 6e 67 29 2c 22 25 | 49 3a 25 4d 20 25 70 20 |ring),"%|I:%M %p |
|00001820| 25 41 2c 20 25 42 20 25 | 64 2c 20 25 59 22 2c 6c |%A, %B %|d, %Y",l|
|00001830| 6f 63 61 6c 74 69 6d 65 | 28 26 41 4e 53 49 54 69 |ocaltime|(&ANSITi|
|00001840| 6d 65 29 29 3b 0d 09 66 | 70 72 69 6e 74 66 28 66 |me));..f|printf(f|
|00001850| 69 6c 65 2c 0d 09 09 22 | 5c 6e 73 61 76 65 09 09 |ile,..."|\nsave..|
|00001860| 09 09 09 25 25 20 25 73 | 2c 20 25 73 5c 6e 22 2c |...%% %s|, %s\n",|
|00001870| 66 69 6c 65 6e 61 6d 65 | 2c 73 74 72 69 6e 67 29 |filename|,string)|
|00001880| 3b 0d 09 66 70 72 69 6e | 74 66 28 66 69 6c 65 2c |;..fprin|tf(file,|
|00001890| 0d 09 09 22 2f 6e 78 20 | 25 64 20 64 65 66 09 09 |..."/nx |%d def..|
|000018a0| 09 09 25 25 20 70 69 78 | 65 6c 73 20 70 65 72 20 |..%% pix|els per |
|000018b0| 72 61 73 74 65 72 20 6c | 69 6e 65 5c 6e 22 2c 72 |raster l|ine\n",r|
|000018c0| 65 63 74 50 74 72 2d 3e | 72 69 67 68 74 2d 72 65 |ectPtr->|right-re|
|000018d0| 63 74 50 74 72 2d 3e 6c | 65 66 74 29 3b 0d 09 66 |ctPtr->l|eft);..f|
|000018e0| 70 72 69 6e 74 66 28 66 | 69 6c 65 2c 0d 09 09 22 |printf(f|ile,..."|
|000018f0| 2f 6e 79 20 25 64 20 64 | 65 66 09 09 09 09 25 25 |/ny %d d|ef....%%|
|00001900| 20 6c 69 6e 65 73 20 69 | 6e 20 69 6d 61 67 65 5c | lines i|n image\|
|00001910| 6e 22 2c 72 65 63 74 50 | 74 72 2d 3e 62 6f 74 74 |n",rectP|tr->bott|
|00001920| 6f 6d 2d 72 65 63 74 50 | 74 72 2d 3e 74 6f 70 29 |om-rectP|tr->top)|
|00001930| 3b 0d 09 66 70 72 69 6e | 74 66 28 66 69 6c 65 2c |;..fprin|tf(file,|
|00001940| 0d 09 09 22 25 64 20 25 | 64 20 74 72 61 6e 73 6c |..."%d %|d transl|
|00001950| 61 74 65 09 09 25 25 20 | 6c 6f 63 61 74 65 20 6c |ate..%% |locate l|
|00001960| 6f 77 65 72 20 6c 65 66 | 74 20 6f 66 20 69 6d 61 |ower lef|t of ima|
|00001970| 67 65 5c 6e 22 2c 70 61 | 67 65 52 65 63 74 50 74 |ge\n",pa|geRectPt|
|00001980| 72 2d 3e 6c 65 66 74 0d | 09 09 2c 70 61 67 65 52 |r->left.|..,pageR|
|00001990| 65 63 74 50 74 72 2d 3e | 62 6f 74 74 6f 6d 29 3b |ectPtr->|bottom);|
|000019a0| 0d 09 66 70 72 69 6e 74 | 66 28 66 69 6c 65 2c 0d |..fprint|f(file,.|
|000019b0| 09 09 22 25 64 20 25 64 | 20 73 63 61 6c 65 09 09 |.."%d %d| scale..|
|000019c0| 09 25 25 20 70 72 69 6e | 74 20 69 6d 61 67 65 20 |.%% prin|t image |
|000019d0| 77 69 74 68 20 74 68 65 | 73 65 20 64 69 6d 65 6e |with the|se dimen|
|000019e0| 73 69 6f 6e 73 20 6f 6e | 20 70 61 67 65 5c 6e 22 |sions on| page\n"|
|000019f0| 0d 09 09 2c 70 61 67 65 | 52 65 63 74 50 74 72 2d |...,page|RectPtr-|
|00001a00| 3e 72 69 67 68 74 2d 70 | 61 67 65 52 65 63 74 50 |>right-p|ageRectP|
|00001a10| 74 72 2d 3e 6c 65 66 74 | 2c 70 61 67 65 52 65 63 |tr->left|,pageRec|
|00001a20| 74 50 74 72 2d 3e 74 6f | 70 2d 70 61 67 65 52 65 |tPtr->to|p-pageRe|
|00001a30| 63 74 50 74 72 2d 3e 62 | 6f 74 74 6f 6d 29 3b 0d |ctPtr->b|ottom);.|
|00001a40| 09 66 70 72 69 6e 74 66 | 28 66 69 6c 65 2c 0d 09 |.fprintf|(file,..|
|00001a50| 09 22 2f 68 79 70 6f 74 | 65 6e 75 73 65 20 7b 64 |."/hypot|enuse {d|
|00001a60| 75 70 20 6d 75 6c 20 65 | 78 63 68 20 64 75 70 20 |up mul e|xch dup |
|00001a70| 6d 75 6c 20 61 64 64 20 | 73 71 72 74 7d 20 62 69 |mul add |sqrt} bi|
|00001a80| 6e 64 20 64 65 66 5c 6e | 22 0d 09 09 22 2f 70 69 |nd def\n|"..."/pi|
|00001a90| 78 65 6c 73 50 65 72 49 | 6e 63 68 20 67 73 61 76 |xelsPerI|nch gsav|
|00001aa0| 65 20 69 6e 69 74 6d 61 | 74 72 69 78 20 37 32 20 |e initma|trix 72 |
|00001ab0| 30 20 64 74 72 61 6e 73 | 66 6f 72 6d 20 68 79 70 |0 dtrans|form hyp|
|00001ac0| 6f 74 65 6e 75 73 65 20 | 67 72 65 73 74 6f 72 65 |otenuse |grestore|
|00001ad0| 20 64 65 66 5c 6e 22 29 | 3b 0d 09 69 66 28 63 65 | def\n")|;..if(ce|
|00001ae0| 6c 6c 73 50 65 72 49 6e | 63 68 21 3d 30 2e 30 29 |llsPerIn|ch!=0.0)|
|00001af0| 7b 0d 09 09 66 70 72 69 | 6e 74 66 28 66 69 6c 65 |{...fpri|ntf(file|
|00001b00| 2c 0d 09 09 09 22 2f 63 | 65 6c 6c 73 50 65 72 49 |,...."/c|ellsPerI|
|00001b10| 6e 63 68 20 25 2e 32 66 | 20 64 65 66 09 25 25 20 |nch %.2f| def.%% |
|00001b20| 68 61 6c 66 74 6f 6e 65 | 20 64 6f 74 20 66 72 65 |halftone| dot fre|
|00001b30| 71 75 65 6e 63 79 5c 6e | 22 2c 63 65 6c 6c 73 50 |quency\n|",cellsP|
|00001b40| 65 72 49 6e 63 68 29 3b | 0d 09 09 66 70 72 69 6e |erInch);|...fprin|
|00001b50| 74 66 28 66 69 6c 65 2c | 0d 09 09 09 22 63 65 6c |tf(file,|...."cel|
|00001b60| 6c 73 50 65 72 49 6e 63 | 68 20 63 75 72 72 65 6e |lsPerInc|h curren|
|00001b70| 74 73 63 72 65 65 6e 20 | 34 20 2d 32 20 72 6f 6c |tscreen |4 -2 rol|
|00001b80| 6c 20 70 6f 70 20 33 20 | 31 20 72 6f 6c 6c 20 73 |l pop 3 |1 roll s|
|00001b90| 65 74 73 63 72 65 65 6e | 5c 6e 22 29 3b 0d 09 7d |etscreen|\n");..}|
|00001ba0| 0d 09 69 66 28 67 72 61 | 79 4c 65 76 65 6c 73 21 |..if(gra|yLevels!|
|00001bb0| 3d 30 2e 30 29 7b 0d 09 | 09 66 70 72 69 6e 74 66 |=0.0){..|.fprintf|
|00001bc0| 28 66 69 6c 65 2c 0d 09 | 09 09 22 2f 63 65 6c 6c |(file,..|.."/cell|
|00001bd0| 73 50 65 72 49 6e 63 68 | 20 70 69 78 65 6c 73 50 |sPerInch| pixelsP|
|00001be0| 65 72 49 6e 63 68 20 25 | 2e 32 66 20 64 69 76 20 |erInch %|.2f div |
|00001bf0| 64 65 66 09 25 25 20 68 | 61 6c 66 74 6f 6e 65 20 |def.%% h|alftone |
|00001c00| 64 6f 74 20 66 72 65 71 | 75 65 6e 63 79 5c 6e 22 |dot freq|uency\n"|
|00001c10| 2c 73 71 72 74 28 67 72 | 61 79 4c 65 76 65 6c 73 |,sqrt(gr|ayLevels|
|00001c20| 29 29 3b 0d 09 09 66 70 | 72 69 6e 74 66 28 66 69 |));...fp|rintf(fi|
|00001c30| 6c 65 2c 0d 09 09 09 22 | 63 65 6c 6c 73 50 65 72 |le,...."|cellsPer|
|00001c40| 49 6e 63 68 20 63 75 72 | 72 65 6e 74 73 63 72 65 |Inch cur|rentscre|
|00001c50| 65 6e 20 34 20 2d 32 20 | 72 6f 6c 6c 20 70 6f 70 |en 4 -2 |roll pop|
|00001c60| 20 33 20 31 20 72 6f 6c | 6c 20 73 65 74 73 63 72 | 3 1 rol|l setscr|
|00001c70| 65 65 6e 5c 6e 22 29 3b | 0d 09 7d 0d 09 66 70 72 |een\n");|..}..fpr|
|00001c80| 69 6e 74 66 28 66 69 6c | 65 2c 0d 09 09 22 2f 73 |intf(fil|e,..."/s|
|00001c90| 20 6e 78 20 73 74 72 69 | 6e 67 20 64 65 66 09 09 | nx stri|ng def..|
|00001ca0| 25 25 20 73 74 72 69 6e | 67 20 74 6f 20 68 6f 6c |%% strin|g to hol|
|00001cb0| 64 20 6f 6e 65 20 72 61 | 73 74 65 72 20 6c 69 6e |d one ra|ster lin|
|00001cc0| 65 5c 6e 22 0d 09 09 22 | 6e 78 20 6e 79 20 38 09 |e\n"..."|nx ny 8.|
|00001cd0| 09 09 09 09 25 25 20 64 | 69 6d 65 6e 73 69 6f 6e |....%% d|imension|
|00001ce0| 73 20 61 6e 64 20 62 69 | 74 73 2f 70 69 78 65 6c |s and bi|ts/pixel|
|00001cf0| 20 6f 66 20 73 6f 75 72 | 63 65 20 69 6d 61 67 65 | of sour|ce image|
|00001d00| 5c 6e 22 0d 09 09 22 5b | 6e 78 20 30 20 30 20 6e |\n"..."[|nx 0 0 n|
|00001d10| 79 20 6e 65 67 20 30 20 | 6e 79 5d 09 25 25 20 6d |y neg 0 |ny].%% m|
|00001d20| 61 70 20 75 6e 69 74 20 | 73 71 75 61 72 65 20 74 |ap unit |square t|
|00001d30| 6f 20 50 69 78 4d 61 70 | 20 64 61 74 61 5c 6e 22 |o PixMap| data\n"|
|00001d40| 0d 09 09 22 7b 63 75 72 | 72 65 6e 74 66 69 6c 65 |..."{cur|rentfile|
|00001d50| 20 73 20 72 65 61 64 68 | 65 78 73 74 72 69 6e 67 | s readh|exstring|
|00001d60| 20 70 6f 70 7d 09 25 25 | 20 72 65 61 64 20 64 61 | pop}.%%| read da|
|00001d70| 74 61 5c 6e 22 0d 09 09 | 22 62 69 6e 64 09 09 09 |ta\n"...|"bind...|
|00001d80| 09 09 25 25 20 73 70 65 | 65 64 20 75 70 20 72 65 |..%% spe|ed up re|
|00001d90| 61 64 69 6e 67 5c 6e 22 | 0d 09 09 22 69 6d 61 67 |ading\n"|..."imag|
|00001da0| 65 5c 6e 22 29 3b 0d 09 | 61 73 73 65 72 74 28 73 |e\n");..|assert(s|
|00001db0| 69 7a 65 6f 66 28 68 65 | 78 5b 30 5d 29 3d 3d 32 |izeof(he|x[0])==2|
|00001dc0| 29 3b 09 2f 2f 20 61 73 | 73 75 6d 65 64 20 62 79 |);.// as|sumed by|
|00001dd0| 20 6f 75 72 20 61 6c 67 | 6f 72 69 74 68 6d 0d 09 | our alg|orithm..|
|00001de0| 61 73 73 65 72 74 28 73 | 69 7a 65 6f 66 28 62 75 |assert(s|izeof(bu|
|00001df0| 66 66 65 72 5b 30 5d 29 | 3d 3d 32 29 3b 2f 2f 20 |ffer[0])|==2);// |
|00001e00| 61 73 73 75 6d 65 64 20 | 62 79 20 6f 75 72 20 61 |assumed |by our a|
|00001e10| 6c 67 6f 72 69 74 68 6d | 0d 09 66 6f 72 28 69 3d |lgorithm|..for(i=|
|00001e20| 30 3b 69 3c 32 35 36 3b | 69 2b 2b 29 7b 0d 09 09 |0;i<256;|i++){...|
|00001e30| 73 70 72 69 6e 74 66 28 | 73 74 72 69 6e 67 2c 22 |sprintf(|string,"|
|00001e40| 25 30 32 78 22 2c 28 69 | 6e 74 29 69 29 3b 0d 09 |%02x",(i|nt)i);..|
|00001e50| 09 68 65 78 5b 69 5d 3d | 2a 28 75 6e 73 69 67 6e |.hex[i]=|*(unsign|
|00001e60| 65 64 20 73 68 6f 72 74 | 20 2a 29 73 74 72 69 6e |ed short| *)strin|
|00001e70| 67 3b 0d 09 7d 0d 09 77 | 69 64 74 68 3d 72 65 63 |g;..}..w|idth=rec|
|00001e80| 74 50 74 72 2d 3e 72 69 | 67 68 74 2d 72 65 63 74 |tPtr->ri|ght-rect|
|00001e90| 50 74 72 2d 3e 6c 65 66 | 74 3b 0d 09 62 79 74 65 |Ptr->lef|t;..byte|
|00001ea0| 73 3d 28 77 69 64 74 68 | 2b 31 29 2a 73 69 7a 65 |s=(width|+1)*size|
|00001eb0| 6f 66 28 2a 62 75 66 66 | 65 72 29 3b 0d 09 62 75 |of(*buff|er);..bu|
|00001ec0| 66 66 65 72 3d 28 75 6e | 73 69 67 6e 65 64 20 73 |ffer=(un|signed s|
|00001ed0| 68 6f 72 74 20 2a 29 4e | 65 77 50 74 72 28 62 79 |hort *)N|ewPtr(by|
|00001ee0| 74 65 73 29 3b 0d 09 69 | 66 28 62 75 66 66 65 72 |tes);..i|f(buffer|
|00001ef0| 3d 3d 4e 55 4c 4c 29 7b | 0d 09 09 70 72 69 6e 74 |==NULL){|...print|
|00001f00| 66 28 22 50 69 78 4d 61 | 70 54 6f 50 6f 73 74 53 |f("PixMa|pToPostS|
|00001f10| 63 72 69 70 74 3a 20 6e | 6f 20 72 6f 6f 6d 20 66 |cript: n|o room f|
|00001f20| 6f 72 20 25 6c 64 20 62 | 79 74 65 20 62 75 66 66 |or %ld b|yte buff|
|00001f30| 65 72 2e 5c 6e 5c 30 30 | 37 22 2c 62 79 74 65 73 |er.\n\00|7",bytes|
|00001f40| 29 3b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 7d 0d |);...ret|urn;..}.|
|00001f50| 09 66 6f 72 28 79 3d 72 | 65 63 74 50 74 72 2d 3e |.for(y=r|ectPtr->|
|00001f60| 74 6f 70 3b 79 3c 72 65 | 63 74 50 74 72 2d 3e 62 |top;y<re|ctPtr->b|
|00001f70| 6f 74 74 6f 6d 3b 79 2b | 2b 29 7b 0d 09 09 6d 6f |ottom;y+|+){...mo|
|00001f80| 64 65 3d 74 72 75 65 33 | 32 62 3b 0d 09 09 53 77 |de=true3|2b;...Sw|
|00001f90| 61 70 4d 4d 55 4d 6f 64 | 65 28 26 6d 6f 64 65 29 |apMMUMod|e(&mode)|
|00001fa0| 3b 0d 09 09 62 79 74 65 | 3d 61 64 64 72 3b 0d 09 |;...byte|=addr;..|
|00001fb0| 09 66 6f 72 28 69 3d 30 | 3b 69 3c 77 69 64 74 68 |.for(i=0|;i<width|
|00001fc0| 3b 69 2b 2b 29 7b 0d 09 | 09 09 62 75 66 66 65 72 |;i++){..|..buffer|
|00001fd0| 5b 69 5d 3d 68 65 78 5b | 62 79 74 65 5b 69 5d 5d |[i]=hex[|byte[i]]|
|00001fe0| 3b 0d 09 09 7d 0d 09 09 | 62 75 66 66 65 72 5b 69 |;...}...|buffer[i|
|00001ff0| 5d 3d 30 3b 0d 09 09 53 | 77 61 70 4d 4d 55 4d 6f |]=0;...S|wapMMUMo|
|00002000| 64 65 28 26 6d 6f 64 65 | 29 3b 0d 09 09 66 70 72 |de(&mode|);...fpr|
|00002010| 69 6e 74 66 28 66 69 6c | 65 2c 22 25 73 5c 6e 22 |intf(fil|e,"%s\n"|
|00002020| 2c 28 63 68 61 72 20 2a | 29 62 75 66 66 65 72 29 |,(char *|)buffer)|
|00002030| 3b 0d 09 09 61 64 64 72 | 2b 3d 72 6f 77 42 79 74 |;...addr|+=rowByt|
|00002040| 65 73 3b 0d 09 7d 0d 09 | 44 69 73 70 6f 73 50 74 |es;..}..|DisposPt|
|00002050| 72 28 28 50 74 72 29 62 | 75 66 66 65 72 29 3b 0d |r((Ptr)b|uffer);.|
|00002060| 09 66 70 72 69 6e 74 66 | 28 66 69 6c 65 2c 22 72 |.fprintf|(file,"r|
|00002070| 65 73 74 6f 72 65 5c 6e | 22 29 3b 0d 09 66 63 6c |estore\n|");..fcl|
|00002080| 6f 73 65 28 66 69 6c 65 | 29 3b 0d 09 53 65 74 46 |ose(file|);..SetF|
|00002090| 69 6c 65 49 6e 66 6f 28 | 66 69 6c 65 6e 61 6d 65 |ileInfo(|filename|
|000020a0| 2c 27 54 45 58 54 27 2c | 27 34 50 53 55 27 29 3b |,'TEXT',|'4PSU');|
|000020b0| 0d 7d 0d 0d 76 6f 69 64 | 20 41 70 70 65 6e 64 54 |.}..void| AppendT|
|000020c0| 6f 46 69 6c 65 28 63 68 | 61 72 20 2a 66 69 6c 65 |oFile(ch|ar *file|
|000020d0| 6e 61 6d 65 2c 63 68 61 | 72 20 2a 73 74 72 69 6e |name,cha|r *strin|
|000020e0| 67 29 0d 7b 0d 09 46 49 | 4c 45 20 2a 66 69 6c 65 |g).{..FI|LE *file|
|000020f0| 3b 0d 09 0d 09 66 69 6c | 65 3d 66 6f 70 65 6e 28 |;....fil|e=fopen(|
|00002100| 66 69 6c 65 6e 61 6d 65 | 2c 22 61 22 29 3b 0d 09 |filename|,"a");..|
|00002110| 69 66 28 66 69 6c 65 3d | 3d 4e 55 4c 4c 29 50 72 |if(file=|=NULL)Pr|
|00002120| 69 6e 74 66 45 78 69 74 | 28 22 41 70 70 65 6e 64 |intfExit|("Append|
|00002130| 54 6f 46 69 6c 65 3a 20 | 45 72 72 6f 72 20 69 6e |ToFile: |Error in|
|00002140| 20 6f 70 65 6e 69 6e 67 | 20 66 69 6c 65 20 5c 22 | opening| file \"|
|00002150| 25 73 5c 22 5c 6e 22 2c | 66 69 6c 65 6e 61 6d 65 |%s\"\n",|filename|
|00002160| 29 3b 0d 09 66 70 72 69 | 6e 74 66 28 66 69 6c 65 |);..fpri|ntf(file|
|00002170| 2c 22 25 73 22 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |,"%s",st|ring);..|
|00002180| 66 63 6c 6f 73 65 28 66 | 69 6c 65 29 3b 0d 7d 00 |fclose(f|ile);.}.|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 00 00 01 00 00 00 03 c8 | 00 00 02 c8 00 00 00 72 |........|.......r|
|00002210| 67 72 61 70 68 65 72 73 | 20 70 6f 69 6e 74 73 20 |graphers| points |
|00002220| 28 31 2f 37 32 22 29 2c | 0d 74 68 65 20 72 65 63 |(1/72"),|.the rec|
|00002230| 14 50 69 78 4d 61 70 54 | 6f 50 6f 73 74 53 63 72 |.PixMapT|oPostScr|
|00002240| 69 70 74 2e 63 72 02 00 | 00 00 54 45 58 54 4b 41 |ipt.cr..|..TEXTKA|
|00002250| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00002260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002270| 00 00 a7 e5 d5 c3 00 00 | 00 00 00 00 04 3a 6c 0d |........|.....:l.|
|00002280| 74 68 61 74 20 79 6f 75 | 20 6b 65 65 70 20 69 6e |that you| keep in|
|00002290| 20 6d 69 6e 64 20 74 68 | 61 74 20 41 70 70 6c 65 | mind th|at Apple|
|000022a0| 20 61 6e 64 20 41 64 6f | 62 65 0d 75 73 65 20 64 | and Ado|be.use d|
|000022b0| 69 66 66 65 72 65 6e 74 | 20 63 6f 6f 72 64 69 6e |ifferent| coordin|
|000022c0| 61 74 65 20 73 79 73 74 | 65 6d 73 2e 20 42 6f 74 |ate syst|ems. Bot|
|000022d0| 68 20 41 70 70 6c 65 20 | 61 6e 64 20 41 64 6f 62 |h Apple |and Adob|
|000022e0| 65 20 69 6e 63 72 65 61 | 73 65 20 78 20 66 72 6f |e increa|se x fro|
|000022f0| 6d 20 6c 65 66 74 20 74 | 6f 20 72 69 67 68 74 2e |m left t|o right.|
|00002300| 00 00 00 f2 00 09 00 18 | 00 00 16 c5 00 75 00 4e |........|.....u.N|
|00002310| 15 c4 00 00 09 70 69 78 | 65 6c 53 69 7a 65 00 18 |.....pix|elSize..|
|00002320| 00 00 16 c5 00 75 00 4e | 15 b4 00 00 09 72 6f 77 |.....u.N|.....row|
|00002330| 42 79 74 65 73 20 00 28 | 00 00 16 c5 00 75 00 4e |Bytes .(|.....u.N|
|00002340| 15 9c 80 00 01 54 00 23 | 01 c6 02 00 94 20 00 00 |.....T.#|..... ..|
|00002350| 00 00 00 00 09 2a 72 65 | 63 74 50 74 72 20 00 16 |.....*re|ctPtr ..|
|00002360| 00 00 16 c5 00 75 00 4e | 15 50 00 00 07 72 65 63 |.....u.N|.P...rec|
|00002370| 74 50 74 72 00 1c 00 00 | 16 c5 00 75 00 4e 15 40 |tPtr....|...u.N.@|
|00002380| 00 00 0d 28 2a 70 6d 29 | 2e 62 6f 75 6e 64 73 20 |...(*pm)|.bounds |
|00002390| 00 1c 00 00 16 c5 00 75 | 00 4e 15 2c 00 00 0d 28 |.......u|.N.,...(|
|000023a0| 2a 70 6d 29 2e 62 6f 75 | 6e 64 73 20 00 26 00 00 |*pm).bou|nds .&..|
|000023b0| 16 c5 00 75 00 4e 15 1c | 80 00 01 40 00 1f 01 b2 |...u.N..|...@....|
|000023c0| 01 fc 94 20 00 00 00 00 | 00 01 00 01 00 02 03 2a |... ....|.......*|
|000023d0| 70 6d 00 12 00 00 16 c5 | 00 75 00 4e 14 80 00 00 |pm......|.u.N....|
|000023e0| 03 70 6d 20 00 12 00 00 | 16 c5 00 75 00 4e 14 70 |.pm ....|...u.N.p|
|000023f0| 00 00 03 70 6d 20 00 00 | 00 48 00 09 4d 6f 6e 61 |...pm ..|.H..Mona|
|00002400| 63 6f 00 00 00 01 00 0c | 00 00 00 00 00 00 00 00 |co......|........|
|00002410| 00 48 00 00 00 48 00 00 | 00 00 00 04 00 06 00 04 |.H...H..|........|
|00002420| 01 2c 00 00 01 dd 02 3d | 01 2c 00 00 01 dd 02 3d |.,.....=|.,.....=|
|00002430| a6 ef 8f 91 00 00 1c 25 | 00 00 1d 5c 00 00 1b c8 |.......%|...\....|
|00002440| 01 00 00 00 00 1e 01 2c | 00 00 01 dd 02 3d 01 2c |.......,|.....=.,|
|00002450| 00 00 01 dd 02 3d 00 00 | 1b c8 00 00 00 00 00 00 |.....=..|........|
|00002460| 00 00 00 00 00 00 00 14 | 00 00 1e d0 00 a9 00 00 |........|........|
|00002470| 00 00 00 00 1d 99 00 9e | 00 00 00 00 00 00 01 48 |........|.......H|
|00002480| 00 0e 00 18 00 00 1e d0 | 00 a9 00 c8 c0 bc 00 00 |........|........|
|00002490| 09 2a 72 65 63 74 50 74 | 72 20 00 16 00 00 1e d0 |.*rectPt|r ......|
|000024a0| 00 a9 00 c8 c0 44 00 00 | 07 72 65 63 74 50 74 72 |.....D..|.rectPtr|
|000024b0| 00 14 00 00 1f 22 00 ac | 00 c8 c0 34 00 00 05 61 |....."..|...4...a|
|000024c0| 64 64 72 20 00 18 00 00 | 1f b2 00 b3 00 c8 c0 24 |ddr ....|.......$|
|000024d0| 00 00 09 72 6f 77 42 79 | 74 65 73 20 00 14 00 00 |...rowBy|tes ....|
|000024e0| 1e 1b 00 a3 00 c8 c0 14 | 00 00 05 62 79 74 65 73 |........|...bytes|
|000024f0| 00 14 00 00 1f 22 00 ac | 00 c8 c0 04 00 00 05 62 |....."..|.......b|
|00002500| 79 74 65 20 00 16 00 00 | 1f 47 00 ae 00 c8 bf f4 |yte ....|.G......|
|00002510| 00 00 07 62 79 74 65 5b | 69 5d 00 1c 00 00 1f 47 |...byte[|i].....G|
|00002520| 00 ae 00 c8 bf e4 10 04 | 0d 68 65 78 5b 62 79 74 |........|.hex[byt|
|00002530| 65 5b 69 5d 5d 20 00 18 | 00 00 1f 47 00 ae 00 c8 |e[i]] ..|...G....|
|00002540| bf d4 00 00 09 68 65 78 | 5b 32 35 35 5d 20 00 16 |.....hex|[255] ..|
|00002550| 00 00 1d ae 00 9f 00 c8 | bf c4 10 20 07 73 74 72 |........|... .str|
|00002560| 69 6e 67 20 00 10 00 00 | 1d 99 00 9e 00 c8 bf b4 |ing ....|........|
|00002570| 00 00 01 69 00 16 00 00 | 1d ae 00 9f 00 c8 bf a4 |...i....|........|
|00002580| 10 20 07 22 25 30 32 78 | 22 20 00 28 00 00 1d cf |. ."%02x|" .(....|
|00002590| 00 a0 00 c8 bf 94 00 00 | 19 2a 28 75 6e 73 69 67 |........|.*(unsig|
|000025a0| 6e 65 64 20 73 68 6f 72 | 74 20 2a 29 73 74 72 69 |ned shor|t *)stri|
|000025b0| 6e 67 00 16 00 00 1d ae | 00 9f 00 c8 c0 b0 10 20 |ng......|....... |
|000025c0| 07 73 74 72 69 6e 67 20 | 00 00 01 00 00 00 03 c8 |.string |........|
|000025d0| 00 00 02 c8 00 00 00 72 | 00 55 f5 18 15 ac 00 00 |.......r|.U......|
|000025e0| 00 1c 00 72 00 02 44 54 | 56 55 00 01 00 1a 4d 50 |...r..DT|VU....MP|
|000025f0| 53 52 00 01 00 32 42 4b | 50 54 00 00 00 4a 08 24 |SR...2BK|PT...J.$|
|00002600| ff ff 00 00 00 00 00 00 | 00 00 48 06 ff ff 00 00 |........|..H.....|
|00002610| 01 7c 00 00 00 00 03 ed | ff ff 00 00 00 f6 00 00 |.|......|........|
|00002620| 00 00 03 f0 ff ff 00 00 | 01 42 00 00 00 00 1d 02 |........|.B......|
|00002630| ff ff 00 00 01 64 00 00 | 00 00 00 00 00 00 00 00 |.....d..|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+